home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 90 / CD Actual 90.iso / Software3D / K-3D / k3d-0.4.2.1 / shaders / k3d_proctext.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-07-23  |  336 b   |  12 lines

  1. /* I took wave's lead and renamed proctexh.h to DPProctext.h -- tal@cs.caltech.edu */
  2.  
  3. /*
  4.  * Preprocessor macros for use in RenderMan shaders.
  5.  * Darwyn Peachey, June, 1994.
  6.  */
  7.  
  8. #define snoise(x)    (2*noise(x) - 1)
  9. #define PULSE(a,b,x) (step((a),(x)) - step((b),(x)))
  10. #define boxstep(a,b,x) clamp(((x)-(a))/((b)-(a)),0,1)
  11.  
  12.